package org.example.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 封装收货地址实体类
 *
 * @author HanJiafeng
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class AddressEntity extends BaseEntity {
    private Integer aid;
    private Integer uid;
    private String name;
    private String provinceName;
    private Integer provinceCode;
    private String cityName;
    private Integer cityCode;
    private String areaName;
    private Integer areaCode;
    private Integer zip;
    private String address;
    private String phone;
    private String tel;
    private String tag;
    private Integer isDefault;


    public AddressEntity(Integer uid, String name, String provinceName, Integer provinceCode, String cityName, Integer cityCode, String areaName, Integer areaCode, Integer zip, String address, String phone, String tel, String tag, Integer isDefault) {
        this.uid = uid;
        this.name = name;
        this.provinceName = provinceName;
        this.provinceCode = provinceCode;
        this.cityName = cityName;
        this.cityCode = cityCode;
        this.areaName = areaName;
        this.areaCode = areaCode;
        this.zip = zip;
        this.address = address;
        this.phone = phone;
        this.tel = tel;
        this.tag = tag;
        this.isDefault = isDefault;
    }

    public AddressEntity(Integer aid, Integer uid, String name, String provinceName, Integer provinceCode, String cityName, Integer cityCode, String areaName, Integer areaCode, Integer zip, String address, String phone, String tel, String tag, Integer isDefault) {
        this.aid = aid;
        this.uid = uid;
        this.name = name;
        this.provinceName = provinceName;
        this.provinceCode = provinceCode;
        this.cityName = cityName;
        this.cityCode = cityCode;
        this.areaName = areaName;
        this.areaCode = areaCode;
        this.zip = zip;
        this.address = address;
        this.phone = phone;
        this.tel = tel;
        this.tag = tag;
        this.isDefault = isDefault;
    }
}
